package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.itheima.health.pojo.Role;
import com.itheima.health.pojo.User;
import com.itheima.health.vo.OrderSettingVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;
import java.util.Set;
@Mapper
public interface OrderSettingDao {

    //int findCountByOrderDate(OrderSetting orderSetting);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(@Param("calendar") String calendar, @Param("calendarEnd") String calendarEnd);
    //
    //OrderSetting findByOrderDate(Date orderDate);
    //
    //void updateByReservations(OrderSetting orderSetting);

    void add(@Param("orderList") List<OrderSetting> orderList);

    //List<OrderSetting> getOrderSettingByMonth(@Param("beginTime") String beginTime,
    //                                          @Param("endTime") String endTime);

    Integer getReservationsByOrderDate(OrderSetting orderSetting);

    void updateNumberByOrderDate(OrderSetting orderSetting);
    int getCount(OrderSetting orderSetting);

    void insert(OrderSetting orderSetting);
}
